In [1]:
%run ../common.ipynb
In [2]:
images = imread('tilescan.tif')
In [4]:
len(images)
Out[4]:
In [9]:
imsave?
In [8]:
for i, img in enumerate(images):
if i < 10:
j = '00' + str(i)
elif i > 10 and i < 100:
j = '0' + str(i)
else:
j = str(i)
imsave('images/' + j + '.tif', img)